Skip to content

fix(dashboard): exact-width panel sizing + prune-branches recipe - #10

Merged
zackkitzmiller merged 2 commits into
mainfrom
feat/dashboard-card-sizing
Aug 6, 2026
Merged

fix(dashboard): exact-width panel sizing + prune-branches recipe#10
zackkitzmiller merged 2 commits into
mainfrom
feat/dashboard-card-sizing

Conversation

@zackkitzmiller

Copy link
Copy Markdown
Member

Summary

Two independent changes:

  • Dashboard panel sizing β€” Introduces a shared card() helper and a cardChrome constant so stat tiles and breakdown panels are sized to an exact inner content width, with MaxWidth clamping the total. Inner width now floors at 1 so a very narrow terminal truncates instead of pushing a box past its column budget and wrapping the whole row. Replaces the scattered panelBox(th).Width(...) calls and magic - 4 / minimum constants.
  • just prune-branches recipe β€” Deletes local branches already merged into origin/main using cherry-pick equivalence, catching squash- and merge-commit-merged PRs that git branch --merged misses. Resolves the default branch dynamically, supports just prune-branches dry, and treats diff failures as non-merged for safety.
  • Ignores the local headroom-content.log tooling artifact.

Test plan

  • go test ./... β€” 849 passed across 18 packages
  • go vet ./... β€” clean

Introduce a shared card() helper and a cardChrome constant so stat
tiles and breakdown panels are sized to an exact inner content width,
with MaxWidth clamping the total. Floors inner width at 1 so a narrow
terminal truncates instead of pushing a box past its column budget and
wrapping the row.
Add a just prune-branches recipe that deletes local branches already
merged into origin/main using cherry-pick equivalence, catching squash
and merge-commit merges that git branch --merged misses. Ignore the
local headroom-content.log tooling artifact.
@netlify

netlify Bot commented Aug 6, 2026

Copy link
Copy Markdown

βœ… Deploy Preview for tihole canceled.

Name Link
πŸ”¨ Latest commit 23d0a42
πŸ” Latest deploy log https://app.netlify.com/projects/tihole/deploys/6a7401e8eac7ca0008e5ea69

@zackkitzmiller
zackkitzmiller merged commit 8866ec3 into main Aug 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant